<?php

/* 店铺分类 scategory */
class ScategorylangModel extends BaseModel
{
    var $table  = 'scategory_lang';
    var $prikey = 'cate_id';
    var $_name  = 'scategorylang';
    var $_relation  =   array(
        // 一条发出去的短信属于一个用户
        'belongs_to_scategory' => array(
            'model'             => 'scategory',
            'type'              => BELONGS_TO,
            'foreign_key'       => 'cate_id',
            'reverse'           => 'has_scategorylang',
        ),
    );

}

?>